/**
 * 分线程(子线程)
 */
function fibonacci(num){
	return num < 2 ? 1 : fibonacci(num-1) + fibonacci(num-2)
}

// 子线程监听事件
var onmessage = function(event){
	console.log("子线程监听的event:"+event)
	var result = fibonacci(event.data)
	postMessage(result)
}
